package 设计模式.工厂模式;

import 设计模式.工厂模式.bo.Coupon;
import 设计模式.工厂模式.factory.CouponVerificationFactory;
import 设计模式.工厂模式.product.ICouponVer;

/**
 * @description:
 * @author: 小白白
 * @create: 2021-10-05
 **/

public class Main {

        public static void main(String[] args) {
            Coupon coupon = new Coupon();
            CouponVerificationFactory couponVerificationFactory = new CouponVerificationFactory();
            ICouponVer couponVer = couponVerificationFactory.getCouponVer(1);
        boolean verify = couponVer.verify(coupon);
    }

}
